package com.zxy.salenet.web.mapper;

import com.zxy.salenet.web.pojo.SalenetCar;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * @author:
 * @version: 1.0
 * @description:
 */
 /**
    * SalenetCarMapper。
     */
public interface SalenetCarMapper extends Mapper<SalenetCar> {

    /**
     * 根据用户id获取对应购物车的信息
     * @param userId
     * @return
     */
    @Select(value = "select * from salenet_car where car_goods_user_id = #{userId}")
    List<SalenetCar> selectByUserId(@Param("userId") Integer userId);
}


/**
     * 完成
     */